<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>日历</title>
<style type="text/css">
	.table div{
		line-height:50px;
	}
	.title div{
		background-color: #999;
		text-align: center;
		float: left;
	}
	.week{
		clear: both;
	}
	.week div{
		background-color: #CCC;
		float: left;
		width: 100px;
		text-align: center;
		font-weight:bold;
	}
	.day{
		clear: both;
	}
	.day ul{
		list-style:none;
		width: 700px;
		margin-left: -40px;
	}
	.day ul li{
		float: left;
		width: 100px;
		text-align:center;
	}
</style>
</head>
<body>
<div class="table">
	<div class="title">
		<div style="width: 100px;"><a href="date.php?month=<{$prev.month}>&year=<{$prev.year}>"><</a></div>
		<div style="width: 500px;"><{$year}>-<{$month}></div>
		<div style="width: 100px;"><a href="date.php?month=<{$next.month}>&year=<{$next.year}>">></a></div>
	</div>
	<div class="week">
		<div>Mo</div>
		<div>Tu</div>
		<div>We</div>
		<div>Th</div>
		<div>Fr</div>
		<div>Sa</div>
		<div>Su</div>
	</div>
	<div class="day">
		<ul>
		<{foreach item=day_list from=$day_list}>
			<li style="color:<{$day_list.color}>;background-color:<{$day_list.background}>;">
				<{$day_list.day}>
				<{if $day_list.edit=='1'}><br/>
					<a href="#">edit</a>
				<{/if}>
			</li>
		<{/foreach}>
		</ul>
	</div>
</div>
</body>
</html>